#ifndef LVGLDESIGNER_H
#define LVGLDESIGNER_H

#include <QMap>
#include <lvgl/lvgl.h>
#include <erpc_version.h>
#include <erpc_client_setup.h>
#if 11200 <= ERPC_VERSION_NUMBER
#include "c_lvgl_is_designer_client.h"
#else
#include "lvgl_is_designer.h"
#endif

#define LVGL_HOST "192.168.2.59"

class LVGLDesigner
{
public:
    LVGLDesigner();
    static void registerObject(lv_obj_t *lv_obj, pLvObject pObj);
    static void removeObject(lv_obj_t *lv_obj);
    static pLvObject findObject(lv_obj_t *lv_obj);

    static pLvObject screen;
    static pLvObject main_ctx;
    static erpc_transport_t transport;

private:
    static QMap<lv_obj_t*, pLvObject> lvObj_map;
};

#endif // LVGLDESIGNER_H
